﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Repositories.Server
{
	/// <summary>
	/// 日志查询模型
	/// </summary>
	public class Server_LogQuery<T>
	{
		/// <summary>
		/// 总数
		/// </summary>
		public int count { get; set; }
		/// <summary>
		/// 查询结果数组
		/// </summary>
		public T result { get; set; }
	}

	/// <summary>
	/// 日志数据
	/// </summary>
	public class Server_LogDatas
	{
		/// <summary>
		/// 数据来源
		/// </summary>
		public string Source { get; set; }
		/// <summary>
		/// 记录时间
		/// </summary>
		public string Time { get; set; }
		/// <summary>
		/// 用户账号
		/// </summary>
		public string Account { get; set; }
		/// <summary>
		/// 用户名
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 角色名称
		/// </summary>
		public string RoleName { get; set; }
		/// <summary>
		/// 日志类型 0 用户日志 1 系统日志
		/// </summary>
		public int CommonType { get; set; }
		/// <summary>
		/// 内容
		/// </summary>
		public string Content { get; set; }
	}

	/// <summary>
	/// 登录日志模型
	/// </summary>
	public class Server_LoginLogData
	{
		/// <summary>
		/// 数据来源
		/// </summary>
		public string Source { get; set; }
		/// <summary>
		/// 记录时间
		/// </summary>
		public string Time { get; set; }
		/// <summary>
		/// 用户编号
		/// </summary>
		public string Uid { get; set; }
		/// <summary>
		/// 用户id
		/// </summary>
		public int UserId { get; set; }
		/// <summary>
		/// 用户名
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 角色
		/// </summary>
		public string RoleName { get; set; }
		/// <summary>
		/// 客户端IP 地址
		/// </summary>
		public string Ip { get; set; }
		/// <summary>
		/// 客户端来源
		/// </summary>
		public int ClientType { get; set; }

		/// <summary>
		/// Session
		/// </summary>
		public string Session { get; set; }
	}


	/// <summary>
	/// 事件日志模型
	/// </summary>
	public class Server_EventLogData
	{
		/// <summary>
		/// 设备id
		/// </summary>
		public string device_id { get; set; }
		/// <summary>
		/// 事件信息
		/// </summary>
		public string event_info { get; set; }
		/// <summary>
		/// 事件类型
		/// </summary>
		public int event_type { get; set; }
		/// <summary>
		/// 来源
		/// </summary>
		public string source { get; set; }
		/// <summary>
		/// 时间
		/// </summary>
		public string time { get; set; }
	}
}
